package com.qdlc.p2p.biz.executer.impl;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.qdlc.p2p.biz.executer.BaseExecuter;
import com.qdlc.p2p.common.constant.Global;
import com.qdlc.p2p.common.constant.LogTplNid;

/**
 * 投标，借款人收到投标资金
 *
 * @author wjx
 * @version 2.0
 * @date 2015年7月14日 下午3:19:03
 */
@Service
@Scope(value=ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class FlowBorrowSuccessExecuter extends BaseExecuter {

    @Override
    public void handleAccountWithLog() {
		Global.setTransfer(LogTplNid.LOG_TPL_KEY, LogTplNid.FLOW_BUY_MONEY_BU);
		Global.setTransfer("web_url", WEB_URL);
		accountService.addUseMoneyAndTotal(super.user.getUserId(), super.toUser.getUserId(), super.money);
    }

}
